package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.exception.HealthException;
import com.itheima.health.pojo.Menu;

import java.util.List;
import java.util.Map;

/**
 * @author zhangxiaosheng
 * @date 2020/9/4 - 10:26
 */
public interface MenuService {
    List<Menu> findParentMenu();

    void addMenu (Menu menu,Integer[] parentMenuIds)throws HealthException;

    PageResult<Menu> findPage(QueryPageBean queryPageBean);

    void deleteMenu(int id)throws HealthException;

    List<Menu> findAll();

    Menu findById(int id);

    Integer findParentId(int id);

    void update(Menu menu);
}
